﻿@model LetLord.ViewModels.CreateTenantGroupMemberViewMemberModel

<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3 id="myModalLabel">Add Tenant Group Member</h3>
</div>

@using (Ajax.BeginForm("CreateTenantGroupMember", "Tenants", FormMethod.Post,
                        new AjaxOptions
                        {
                            InsertionMode = InsertionMode.Replace,
                            HttpMethod = "POST",
                            UpdateTargetId = "create-tenant-group-member-modal"
                        }))
{
    @Html.ValidationSummary()
    @Html.AntiForgeryToken()
    <div class="modal-body">
        <div>
            @Html.LabelFor(x => x.TenantGroupMemberName)
            @Html.EditorFor(x => x.TenantGroupMemberName)
            @Html.ValidationMessageFor(x => x.TenantGroupMemberName)
        </div>
        <div>
            @Html.LabelFor(x => x.TenantGroupMemberAge)
            @Html.EditorFor(x => x.TenantGroupMemberAge)
            @Html.ValidationMessageFor(x => x.TenantGroupMemberAge)
        </div>
    </div>
    
    <div class="modal-footer">
        <button class="btn" data-dismiss="modal" aria-hidden="true">Undo</button>
        <button class="btn btn-inverse" type="submit">Save</button>
    </div>
}

